<?xml version='1.0' encoding="utf-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
		<html>
			<head>
				<title>leftbar</title>
				<link rel="stylesheet" type="text/css" href="../../themes/com/style.css" />
				<script language="javascript" src="../../themes/com/script.js" charset="gb2312"></script>
			</head>
			<body>
				<xsl:for-each select="Channels/Channel">
					<!-- 大标题 -->
					<table cellpadding="0" cellspacing="0" width="100%" class="ltb_tle_mg" bg_type="oc">
						<tr>
							<xsl:attribute name="onclick">OnShow_Ltb(<xsl:value-of select="./@ID" />,<xsl:value-of select="./@ID" />img);</xsl:attribute>
							<xsl:if test="string-length(url)&gt;0">
								<a>
									<xsl:attribute name="href">
										<xsl:value-of select="./url" />
									</xsl:attribute>
                  <td class="ltb_tle_f">
                    <xsl:value-of select="./@Name" />
                  </td>
                  <td class="ltb_tle_i">
                    <img src="../../themes/com/ltb_tle_c.gif">
                      <xsl:attribute name="ID"><xsl:value-of select="./@ID" />img</xsl:attribute>
                    </img>
                  </td>
								</a>
							</xsl:if>
							<xsl:if test="string-length(url)=0">
                <td class="ltb_tle_f">
                  <xsl:value-of select="./@Name" />
                </td>
                <td class="ltb_tle_i">
                  <img src="../../themes/com/ltb_tle_o.gif" border="0">
                    <xsl:attribute name="ID"><xsl:value-of select="./@ID" />img</xsl:attribute>
                  </img>
                </td>
							</xsl:if>
						</tr>
					</table>
					<!-- 小标题 -->
					<div>
						<xsl:attribute name="id">
							<xsl:value-of select="./@ID" />
						</xsl:attribute>
						<xsl:for-each select="./SubChannel">
							<table cellpadding="0" cellspacing="0" class="ltb_list_mg">
								<xsl:attribute name="onclick">LtbClick('<xsl:value-of select="./url" />','<xsl:value-of select="./target" />');</xsl:attribute>
								<tr>
									<td class="ltb_list_i">
										<img src="../../themes/com/ltb_list_i.gif" border="0" align="absmiddle"></img>
									</td>
									<td class="ltb_list_f">
										<xsl:value-of select="./@Name" />
									</td>
								</tr>
							</table>
						</xsl:for-each>
						<table cellpadding="0" cellspacing="0" width="100%">
							<tr>
								<td class="ltb_c">
									<img src="../../themes/com/space.gif"></img>
								</td>
							</tr>
						</table>
					</div>
				</xsl:for-each>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>